package com.cet.test.mt04.qz3;

/**
 * @program: cet-practice
 * @description:
 * @author: 陈恩涛
 * @create: 2023-05-06 21:22
 **/
public class Client {

    public static void main(String[] args) {
        DemoService demoService = new DemoService();

        LazyIterator<Integer> lazyIterator = new LazyIterator<>(demoService::getData);

        for (Integer data : lazyIterator) {
            System.out.println(data);
        }
    }
}
